#include "cpu/exec/template-start.h"

#define instr test

static void do_execute(){
    DATA_TYPE result = op_dest->val & op_src->val;  //记录按位与逻辑运算后的结果
    update_eflags_pf_zf_sf((DATA_TYPE_S)result);  //根据结果调用已经编写好的PF,ZF,SF更新函数
    cpu.eflags.CF = 0;  //清除CF,OF
    cpu.eflags.OF = 0;
    print_asm_template1(); 
}

make_instr_helper(i2a)
make_instr_helper(i2rm)
make_instr_helper(r2rm)

#include "cpu/exec/template-end.h"